package com.digital.welcome.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.digital.welcome.entity.PageRequest;
import com.digital.welcome.entity.Permission;
import com.digital.welcome.entity.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;


public interface UserService extends IService<User> {


    String login(User user, HttpServletRequest request);

    User getUserByUsername(String username);

    String getUserById(User user);

    String insertUser(User user);//单个插入

    String insertUsers(HttpServletRequest request) throws Exception;//多个插入

    String getProvinceNumber(String province);//获取在该省的学生数

    List<Permission> getMenuList(String username);

    String getAllProvinces();//获取所有省

    String getStudentNumber();//获取男女生数量

    String getUsername(User user);//通过身份证号查学号

    String updatePassword(String username, String name, String identity, String newPassword);

    String getState(User user);

    String selectUser(String userName) throws InterruptedException;//查询学生信息

    String delete(String userName);

    String updateRole(String userName, String roleName);

    String insertManager(String userName, String passWord, String roleName);

    String deleteManager(String userName);

    String getManager();

    String findPage(PageRequest pageRequest);
}
